// title标题颜色
@TTColor: rgb(71, 213, 255);

// 水平垂直居中
.PCenter(@zindex: 9) {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: @zindex;
}

// 颜色渐变函数
.linearColor(@start: blue, @end: skyblue) {
    background-image: linear-gradient(-60deg, @start, @end);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.BGsetting(@url: '', @size: contain, @pos: center) {
    background-image: url(@url);
    background-repeat: no-repeat;
    background-size: @size;
    background-position: @pos;
}

.top_title {
    font-size: .2rem;
    font-weight: bold;
    color: @TTColor;
    position: absolute;
    left: 0;
    top: -20px;
    width: 100%;
    text-align: center;
    text-indent: 0.15rem;
    padding: 0.05rem 0;

    .top_title_after::after {
        content: attr(attr-title);
        font-size: 15px;
        padding-left: 5px;
        position: absolute;
        right: 0.3rem;
        top: 50%;
        transform: translateY(-50%);
    }
}

.container {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    box-sizing: border-box;
    position: relative;

    .banner {
        position: absolute;
        top: 2%;
        left: 0;
        width: 100%;
        height: 6vh;
        z-index: 99;

        div {
            height: 3vh;
            position: absolute;
            top: 2%;

            img {
                height: 100%;
            }
        }

        img {
            height: 3vh;
            cursor: pointer;
        }

        .logo {
            margin-left: 1vw;
            float: left;
        }

        .full_screen {
            float: right;
            margin-right: 1vw;
        }

        .home {
            float: right;
            margin-right: 0.5vw;
        }

        span {
            float: right;
            margin-right: 1vw;
            font-size: 20px;
            color: #fff;
            height: 3vh;
            line-height: 3vh;
            cursor: pointer;
            background-image: linear-gradient(0, #fbf7f1 0%, #d4d4d4 22%, #5f574b 44%, #c3c2c0 66%, #f4f4f4 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .exit {
            // width:5vw;
            // right:1vw;
            // .BGsetting('../../../../static/images/aaa/exit.png', contain, right)
            float: right;
            margin-right: 1vw;
        }
    }

    .title {
        height: 5vh;
        display: flex;
        justify-content: center;
        font-size: 0.28rem;
        color: white;
        line-height: 0.45rem;
        position: relative;
        z-index: 3;

        .title_text {
            position: absolute;
            top: 20%;
            left: 50%;
            transform: translateX(-50%);
            z-index: 4;
            text-shadow: 0 0 5px skyblue, 0 0 15px skyblue;
        }
    }

    .title::before {
        content: "";
        width: 40%;
        height: 5vh;
        position: absolute;
        left: 50%;
        bottom: -80%;
        transform: translateX(-50%);
        background-image: url(../../../../static/images/aaa/light.png);
        background-repeat: no-repeat;
        background-size: 100% 100%;
        background-position: center bottom;
        z-index: 5;
    }

    .title::after {
        content: '';
        width: 100%;
        height: 10vh;
        position: absolute;
        top: 0;
        left: 0;
        background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 70%, rgba(0, 0, 0, 0) 100%);
    }

    .content {
        width: 100vw;
        height: 90vh;
        padding: 5vh 3% 0 3%;
        box-sizing: border-box;
        display: flex;

        .content-l-wrap {
            width: 26vw;
            display: flex;
            justify-content: space-between;
            flex-direction: column;
            z-index: 4;

            .l-top {
                height: 26vh;
                margin-bottom: 0.3rem;
                background: url(../../../../static/images/aaa/background.png) no-repeat;
                background-size: 100% 100%;
                position: relative;
            }

            .l-mid {
                height: 26vh;
                flex: 1;
                margin-bottom: 0.3rem;
                background: url(../../../../static/images/aaa/background.png) no-repeat;
                background-size: 100% 100%;
                position: relative;

            }

            .l-bot {
                height: 26vh;
                background: url(../../../../static/images/aaa/background.png) no-repeat;
                background-size: 100% 100%;
                position: relative;
            }
        }

        .content-mid-wrap {
            width: 46vw;
            margin: 0 0.1rem;
            display: flex;
            flex-direction: column;

            .content-mid-wrap-t {
                height: 20vh;
                margin-bottom: 0.1rem;
                position: relative;

                .content_data_list {
                    display: flex;
                    justify-content: space-around;
                    width: 100%;
                    .PCenter(9); // 居中调用

                    .content_data_item {
                        .content_data_item_status {
                            text-align: center;
                            font-size: 0.18rem;
                            font-weight: bold;
                            color: #FFF;
                            margin-bottom: 0.05rem;
                        }

                        .content_data_item_val {
                            font-size: 0.2rem;
                            display: flex;
                            justify-content: space-around;
                            align-items: center;
                            font-style: italic;
                            font-weight: bold;

                            .content_data_item_val_num {
                                span {
                                    color: #fff;
                                    padding: 1px 3px;
                                    margin: 0 3px;
                                    border: 1px solid #5ea1d5;
                                    overflow: hidden;
                                    width: 0.18rem;
                                    height: 0.25rem;
                                    writing-mode: vertical-rl;
                                    text-orientation: upright;
                                    position: relative;

                                    i {
                                        position: absolute;
                                        top: 0;
                                        left: -0.02rem;
                                        width: 0.2rem;
                                        transition: transform 2s ease-in-out;
                                        cursor: default;
                                    }
                                }
                            }

                            .content_data_item_unit {
                                color: #fff;
                                margin-left: 5px;
                                transform: translateX(-3px);
                                font-size: 0.15rem;
                            }
                        }

                        // 类名动态更改文字渐变颜色
                        .content_data_item_val.blue {
                            .content_data_item_val_num {
                                span {
                                    i {
                                        .linearColor(#76bef5, #3575ad)
                                    }
                                }
                            }

                            .content_data_item_unit {
                                .linearColor(#76bef5, #3575ad)
                            }
                        }

                        .content_data_item_val.green {
                            .content_data_item_val_num {
                                span {
                                    i {
                                        .linearColor(#aae754, #849b4f)
                                    }
                                }
                            }

                            .content_data_item_unit {
                                .linearColor(#aae754, #849b4f)
                            }
                        }

                        .content_data_item_val.orange {
                            .content_data_item_val_num {
                                span {
                                    i {
                                        .linearColor(#daa62d, #e7c981)
                                    }
                                }
                            }

                            .content_data_item_unit {
                                .linearColor(#daa62d, #e7c981)
                            }
                        }

                        .content_data_item_val.red {
                            .content_data_item_val_num {
                                span {
                                    i {
                                        .linearColor(#72231c, #fa5c4d)
                                    }
                                }
                            }

                            .content_data_item_unit {
                                .linearColor(#72231c, #fa5c4d)
                            }
                        }

                        .content_data_item_val.gray {
                            .content_data_item_val_num {
                                span {
                                    i {
                                        .linearColor(#777676, #d1d1d1)
                                    }
                                }
                            }

                            .content_data_item_unit {
                                .linearColor(#777676, #d1d1d1)
                            }
                        }
                    }
                }
            }

            .content-mid-wrap-m {
                height: 20vh;
                position: relative;
            }

            .content-mid-wrap-b {
                height: 30vh;
                position: relative;

                .map_tip {
                    width: 100%;
                    height: 40vh;
                    position: absolute;
                    top: -10%;
                    left: 0;
                    background-image: url("../../../../static/images/aaa/info_bg.png");
                    background-repeat: no-repeat;
                    background-size: 100% 100%;
                    z-index: 999;
                    padding: 0.15rem;

                    .map_tip_title {
                        color: rgb(0, 123, 180);
                        font-size: 0.2rem;
                        text-align: center;
                        position: relative;
                        transform: translateY(0.1rem);

                        p::after {
                            content: attr(data-status);
                            background-color: rgb(211, 48, 85);
                            color: #FFF;
                            font-size: 0.14rem;
                            padding: 2px 5px;
                            margin-left: 10px;
                            margin-top: -2px;
                            border-radius: 5px;
                        }
                    }

                    .map_tip_title.green {
                        p::after {
                            background-color: #a1b377;
                        }
                    }

                    .map_tip_title.orange {
                        p::after {
                            background-color: #daa62d;
                        }
                    }

                    .map_tip_title.red {
                        p::after {
                            background-color: rgb(211, 48, 85);
                        }
                    }

                    .map_tip_title.gray {
                        p::after {
                            background-color: rgb(105, 105, 105);
                        }
                    }

                    .map_tip_info {
                        display: flex;
                        justify-content: space-around;
                        transform: translateY(15%);

                        .map_tip_info_l,
                        .map_tip_info_r {
                            div {
                                margin: 8px 0;
                                font-size: 0.15rem;
                                color: rgb(29, 146, 201);
                            }
                        }
                    }

                    .map_tip_info_item_list {
                        display: flex;
                        justify-content: space-around;
                        text-align: center;
                        transform: translateY(-0.2rem);
                        padding: 0 0.1rem;

                        .map_tip_info_item {
                            width: 15%;

                            img.map_tip_info_item_icon {
                                height: 4vh;
                                opacity: 0.3;
                                transform: translateY(-0.1rem);
                            }

                            .map_tip_info_item_status {
                                background-image: url("../../../../static/images/aaa/border_bg.png");
                                background-repeat: no-repeat;
                                background-size: 100% 100%;
                                width: 100%;
                                height: 8vh;
                                padding: 0.1rem 0;
                                display: flex;
                                flex-direction: column;
                                justify-content: space-around;
                                transform: translateY(-0.12rem);
                            }

                            .map_tip_info_item_status_val {
                                width: 80%;
                                height: 0.25rem;
                                line-height: 0.22rem;
                                margin: 0 auto;
                                font-size: 0.13rem;
                                color: orangered;
                                border: 2px solid rgba(0, 132, 255, 0.788);
                                background: #10233A;
                                background-image: linear-gradient(135deg,
                                        transparent 25%,
                                        rgba(21, 50, 82, 0.3) 0,
                                        rgba(21, 50, 82, 0.3) 50%,
                                        transparent 0,
                                        transparent 75%,
                                        rgba(21, 50, 82, 0.3) 0);
                                background-size: 14px 14px;
                            }

                            .map_tip_info_item_intro {
                                font-size: 0.12rem;
                                color: rgb(88, 194, 255);
                            }
                        }
                    }
                }
            }
        }

        .content-r-wrap {
            width: 26vw;
            display: flex;
            flex-direction: column;

            .content-r-wrap-t {
                height: 26vh;
                margin-bottom: 0.3rem;
                padding-bottom: 3%;
                background: url("../../../../static/images/aaa/background.png") center center no-repeat;
                background-size: 100% 100%;
                position: relative;

                .com_exceed {
                    height: 100%;
                    padding: 0.3rem 0.1rem 0 0.1rem;

                    .exceed_title {
                        height: 15%;
                        color: red;
                        font-size: 0.14rem;
                        display: flex;
                        justify-content: flex-end;
                        align-items: center;

                        .exceed_title_icon {
                            text-indent: -0.15em;
                            margin-right: 10px;
                            font-weight: bold;
                            color: black;
                            width: 0;
                            height: 0;
                            line-height: 0.22rem;
                            border-left: 0.11rem solid transparent;
                            border-right: 0.11rem solid transparent;
                            border-bottom: 0.18rem solid red;
                            animation: blink 2s infinite;
                        }

                        .exceed_title_cont {
                            // font-weight: lighter;
                            font-size: 0.14rem;
                        }

                        .exceed_num {
                            font-weight: bold;
                            margin: 3px 20px 0 10px;
                        }
                    }

                    .exceed_list {
                        // height: 85%;
                        height: 16vh;
                        font-size: 0.15rem;
                        color: #fff;
                        overflow-y: scroll;

                        .exceed_item {
                            height: 4vh;
                            // line-height: 4vh;
                            display: flex;
                            justify-content: space-between;
                            align-items: center;
                            margin-bottom: 0.02rem;
                            padding-right: 15px;

                            .exceed_item_index {
                                background-color: rgb(75, 35, 35);
                                font-size: 0.15rem;
                                font-weight: bolder;
                                padding: 1px 2px;
                            }

                            .exceed_item_info {
                                width: 55%;

                                .exceed_item_company {
                                    display: flex;
                                    justify-content: space-between;
                                    align-items: center;
                                    font-size: 0.2rem;
                                    height: 0.25rem;
                                    text-overflow: ellipsis;
                                    overflow: hidden;

                                    span {
                                        height: 0.25rem;
                                        text-overflow: ellipsis;
                                        overflow: hidden;
                                    }

                                    .exceed_item_time {
                                        color: #1960c9;
                                        font-weight: bolder;
                                        margin-left: 15px;
                                        font-size: 0.15rem;
                                    }
                                }

                                .exceed_item_addr {
                                    color: #666;
                                    font-size: 0.12rem;
                                }
                            }

                            .exceed_item_amount {
                                width: 28%;
                                .exceed_amount {
                                    color: red;
                                }

                                .exceed_unit {}
                            }
                        }

                        .exceed_none {
                            font-size: 0.18rem;
                            color: #fff;
                        }
                    }

                    .exceed_list::-webkit-scrollbar {
                        width: 5px;
                        height: 100%;
                        border: 1px solid rgb(11, 71, 128);
                    }

                    .exceed_list::-webkit-scrollbar-thumb {
                        background-color: rgb(59, 110, 177);
                    }
                }
            }

            .content-r-wrap-m {
                height: 26vh;
                margin-bottom: 0.3rem;
                background: url("../../../../static/images/aaa/background.png") center center no-repeat;
                background-size: 100% 100%;
                position: relative;

                ._unit {
                    // 单位在echart中添加比较麻烦, 改为使用css控制
                    position: absolute;
                    top: 12%;
                    right: 10%;
                    font-size: 0.12rem;
                    color: #FFF;
                }
            }

            .content-r-wrap-b {
                height: 26vh;
                background: url("../../../../static/images/aaa/background.png") center center no-repeat;
                background-size: 100% 100%;
                position: relative;

                .show_more {
                    position: absolute;
                    top: 12%;
                    right: 5%;
                    font-size: 0.12rem;
                    color: rgb(38, 78, 212);
                }
            }
        }
    }
}

@keyframes blink {
    0% {
        opacity: .5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: .5;
    }
}

@keyframes flip {
    0% {
        transform: translateY(-20px);
    }

    15% {
        transform: translateY(-5px);
    }

    30% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(10px);
    }

    80% {
        transform: translateY(30px);
    }

    90% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* 
关于百度地图的修改: 
因为在BDMap层上添加filter的话, 
会使得整个组件都笼罩在蓝色底层下,
所以这个方案不可取, 
经查询在以下div中是所有百度地图图片的存放元素,
在此处添加filter滤镜就好了
地图上的标记点统一改用为GIF图代替
*/
#BDMap {
    .map {
        div:first-child {
            background-color: unset !important;

            div {
                div:nth-child(3) {
                    filter: grayscale(1) opacity(0.3) !important;
                }
            }
        }

        .BMap_Marker {
            div {
                img {
                    width: 100%;
                }
            }
        }

        .BMap_Marker.BMap_noprint::before {
            content: "";
            width: 20px;
            height: 35px;
            display: inline-block;
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -70%);
        }

        /* 正常 */
        .BMap_Marker.BMap_noprint.green::before {
            background: linear-gradient(0deg,
                    rgba(132, 155, 79, 0.6),
                    rgba(132, 155, 79, 0.4),
                    rgba(132, 155, 79, 0));
        }

        /* 预警 */
        .BMap_Marker.BMap_noprint.orange::before {
            background: linear-gradient(0deg,
                    rgba(231, 201, 129, 0.6),
                    rgba(231, 201, 129, 0.4),
                    rgba(231, 201, 129, 0));
        }

        /* 超标 */
        .BMap_Marker.BMap_noprint.red::before {
            background: linear-gradient(0deg,
                    rgba(250, 92, 77, 0.4),
                    rgba(250, 92, 77, 0.2),
                    rgba(250, 92, 77, 0));
        }

        /* 离线 */
        .BMap_Marker.BMap_noprint.gray::before {
            background: linear-gradient(0deg,
                    rgba(209, 209, 209, 0.6),
                    rgba(209, 209, 209, 0.4),
                    rgba(209, 209, 209, 0));
        }
    }
}